package com.example.feign.service;

import com.example.feign.ProductFeignClient.ProductFeignClient;
import com.example.feign.pojo.Product;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductService {
    @Resource
    ProductFeignClient productFeignClient;

    public List<Product>listProducts(){
        List<Product> products = productFeignClient.listProducts();
        return products;
    }
}
